import re


def split_string_by_multiple_delimiters(string, delimiters):
    pattern = '|'.join(map(re.escape, delimiters))
    return re.split(pattern, string)


# 验证数字格式
def judge_number(s):
    regInt = r'^0$|^[1-9]\d*$'  # 不接受09这样的为整数
    regFloat = r'^0\.\d+$|^[1-9]\d*\.\d+$'
    regIntOrFloat = regInt + '|' + regFloat  # 整数或小数
    patternIntOrFloat = re.compile(regIntOrFloat)
    if patternIntOrFloat.search(s):
        return True
    if re.search(patternIntOrFloat, s):
        return True
    if re.search(regIntOrFloat, s):
        return True
    else:
        return False
